<?php echo doctype('html5').nl(); ?>
<html lang="en">
<head>
	<?php echo meta(array(
        array('name' => 'Content-type', 'content' => 'text/html; charset=utf-8', 'type' => 'equiv')
    ,	array('name' => 'viewport', 'content' => 'width=device-width, user-scalable=no')
    )).nl(); ?>
	<title>Latova Software</title>
	<?php
	echo link_tag(array('rel' => 'icon', 'href' => base_url('skin/default/logo.png'), 'type' => 'image/png')).
	link_tag(array('rel' => 'shortcut icon', 'href' => base_url('skin/default/logo.png'), 'type' => 'image/png'));

	foreach($css as $c):
		echo link_tag(array('rel' => 'stylesheet/less', 'type' => 'text/css', 'href' => $c));
	endforeach;

	echo script_tag(base_url('js/less.js'));
	?>

	<!-- IE not supported yet! -->
	<!--[if IE]><script>window.location='https://www.google.com/chrome';</script><![endif]-->
</head>
<body>
	<header>
		<nav id="nav-primary">
			<ul>
				<li><? echo anchor ('/', 'navigation item') ?></li>
				<li><? echo anchor ('/', 'navigation item') ?></li>
				<li><? echo anchor ('/', 'navigation item') ?></li>
				<li><? echo anchor ('/', 'navigation item') ?></li>
				<li><? echo anchor ('/', 'navigation item') ?></li>
				<li><? echo anchor ('/', 'navigation item') ?></li>
				<li id="account">guest</li>
			</ul>
		</nav>
		<section>
			<h1><?php echo anchor('/', '<strong>Latova</strong>Software'); ?></h1>
			<aside>
				<nav id="nav-secondary">
					<ul>
						<li><? echo anchor ('/', 'navigation item') ?></li>
						<li><? echo anchor ('/', 'navigation item') ?></li>
						<li><? echo anchor ('/', 'navigation item') ?></li>
						<li><? echo anchor ('/', 'navigation item') ?></li>
						<li><? echo anchor ('/', 'navigation item') ?></li>
						<li><? echo anchor ('/', 'navigation item') ?></li>
					</ul>
				</nav>
				<form action="<?php echo site_url('search') ?>" method="post" id="search" class="close">
					<input type="text" placeholder="enter search terms" />
					<input type="hidden" name="section" id="search-section" value="" />
					<button id="search-button" type="submit"><span class="icon search"></span>search</button>
				</form>
				<form action="<?php echo site_url('login') ?>" method="post" id="login">
					<input type="text" placeholder="username" tabindex="1" /><input type="password" placeholder="password" tabindex="2" />
					<button id="login-button" type="submit" tabindex="4"><span class="icon user"></span>login</button>
					<div>
						<?php echo anchor('account/register', 'register').anchor('account/recover', 'recover password'); ?>
						<label><input type="checkbox" value="1" tabindex="3" /> remember</label>
					</div>
				</form>
			</aside>
		</section>
	</header>
	<section id="content">
<?php echo $output.nl(); ?>
	</section>
	<div id="loading"></div>
	<script>var base_url=<?php echo json_encode(base_url()) ?>, lat=<?php echo json_encode($js_vars); ?>;</script>
	<?php
	echo script_tag(base_url('js/jquery.js')).script_tag(base_url('js/init.js')).script_tag('http://www.google.com/recaptcha/api/js/recaptcha_ajax.js');
	foreach($js_files as $j):
		echo script_tag($j);
	endforeach;
	echo nl();
	if($js_code):
		echo "<script>".implode("\n", $js_code)."</script>";
	endif;

	echo nl(); ?>
</body>
</html>